#ifndef SERVER_H
#define SERVER_H

#include <QWidget>

QT_BEGIN_NAMESPACE
namespace Ui { class Server; }
QT_END_NAMESPACE

class Server : public QWidget
{
    Q_OBJECT

public:
    Server(QWidget *parent = nullptr);//构造函数
    ~Server();//析构函数
    void loadConfig();
    static Server& getInstance();
    QString m_rootDir;

private:
    Ui::Server *ui;
    QString m_strIP;
    quint16 m_usPort;


    Server(const Server& instance) = delete;//拷贝构造
    Server& operator = (const Server&) = delete;//拷贝运算符

};
#endif // SERVER_H
